package com.example.imitation_webchat_demo.model;

import java.lang.ref.WeakReference;

import android.app.Activity;
import android.os.Handler;

// MyHandler继承Hanlder，解决handler should be static or leak might be occured 
public class MyHandler extends Handler {
	WeakReference<Activity> weakReference;
	
	public MyHandler(Activity activity){
		weakReference = new WeakReference<Activity>(activity);
	}
}